import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name:'/',
    component: () => import(/* webpackChunkName: "about" */ '../views/LoginView.vue')
  },
  {
    path: '/#/main',
    name:'main',
    component: () => import(/* webpackChunkName: "about" */ '../views/Container.vue'),
    children:[
      {
        path: '/index',
        name:'index',
        component: () => import(/* webpackChunkName: "about" */ '../views/IndexView.vue'),
      },
      {
        path: '/article',
        name:'article',
        component: () => import(/* webpackChunkName: "about" */ '../views/Article/ArticleView.vue')
      },
      {
        path: '/article-type-setting',
        name:'article-type-setting',
        component: () => import(/* webpackChunkName: "about" */ '../views/Article/ArticleTypeSettingView.vue')
      },
      {
        path: '/article-tips-setting',
        name:'article-tips-setting',
        component: () => import(/* webpackChunkName: "about" */ '../views/Article/ArticleTipsSettingView.vue')
      },
    ]
  },


]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
